package com.foreknow.service;

import com.foreknow.model.Business;
import com.foreknow.model.Food;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-08-14 11:07
 */
public interface FoodService {
    /**
     * 显示所有信息
     * @return
     * @throws Exception
     */
    public List<Object> showAll() throws Exception;

    /**
     * 添加操作
     * @param food
     * @return
     */
    public boolean add(Food food);

    /**
     * 删除操作
     * @param id
     * @return
     */
    public boolean del(int id);

    /**
     * 查询根据id
     * @param id
     * @return
     */
    public Object getQueryById(int id);

    /**
     * 修改
     * @param food
     * @return
     */
    public boolean Update(Food food);
}
